package com.hu.zhcc.shiro.service.Appointment;

import com.hu.zhcc.common.entity.Page;
import com.hu.zhcc.shiro.entity.Appointment.AReservation;

import java.util.List;
import java.util.Map;

public interface ReserService {
    Page<AReservation> selectAReserAll(Map<String, String> map, String value);

    int insertSelective(AReservation record);

    int deleteByPrimaryKey(Integer id);

    AReservation beforeUpdateById(int id);

    int updateByPrimaryKeySelective(AReservation record);

    int updateStateByid(int id);

    int updateConfirmByid(int id);

    List<AReservation> findAllAReserByPhoneNumber(String phone);

    //根据手机号查询所有已预约
    List<AReservation> findAllAReserByPhoneNumberAndState1(String phone);

    //根据档案号查询所有预约
    List<AReservation> findAllAReserByFileNumber(String fileNumber);

    AReservation selectByPrimaryKey(Integer id);

    List<AReservation> findStateByOne();
}
